package com.gztms.enums;

/**
 * @author Zoey
 * @date 2023/5/2 0:44
 * @Description 编码
 **/
public enum AppCodeEnum {
    SUCCESS(200, "操作成功"),
    SYSTEM_ERROR(500,"服务器错误"),
    USER_INFO_NULL(410,"缺少必填信息"),
    USER_EXISTED(501,"用户已存在"),
    PHONE_ERROR(413,"手机号填写错误"),
    PASSWORD_ERROR(412,"密码格式不符合要求"),
    LOGIN_ERROR(505,"用户账号或密码错误"),
    NO_OPERATION_AUTH(403,"您没有操作权限"),
    NEED_LOGIN(401,"需登录后才能进行操作"),
    CONTENT_NOT_NULL(506,"内容不能为空"),
    EMAIL_ERROR(410,"邮箱格式错误");

    int code;
    String msg;

    AppCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
